package com.lyf.boot.base.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lyf.boot.core.model.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author Luyufan
 * @date 2024/1/11 09:09
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_sys_client")

public class SysClient extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 2087907537301271255L;

    /**
     * 客户端id
     */
    @TableId(value = "client_id", type = IdType.ASSIGN_ID)
    private Long clientId;

    /**
     * 客户端编码
     */
    private String clientCode;

    /**
     * 客户端key
     */
    private String clientKey;

    /**
     * 客户端密钥
     */
    private String clientSecret;

    /**
     * 授权类型
     */
    private String grantType;

    /**
     * 设备类型
     */
    private String deviceType;

    /**
     * token活跃超时时间
     */
    private Long activeTimeout;

    /**
     * token固定超时
     */
    private Long timeout;

    /**
     * 状态（1正常 0停用）
     */
    private Integer status;

    /**
     * 备注
     */
    private String remark;
}
